package com.danbay.cloud.auth.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author SJG
 *         2017/12/19.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_account")
public class Account {
    /**
     * 主键 登录账号(手机号、邮箱..)
     */
    @TableId
    private String userName;

    /**
     * '密码'
     */
    private String password;

    /**
     * '别名'
     */
    private String nickName;

    /**
     * '账户组id列表:1,2,3,
     填*表示跨任意账户组
     */
    private String groupIds;

    /**
     *  is 'Spring security属性
     账号是否未过期
     */
    private Boolean accountNonExpired;

    /**
     * 'Spring security属性
     账号是否未锁定
     */
    private Boolean accountNonLocked;

    /**
     * Spring security属性
     账号凭证是否未过期
     */
    private Boolean credentialsNonExpired;

    /**
     * Spring security属性
     账号是否可用
     */
    private Boolean enabled;

    /**
     * '添加时间'
     */
    private Date addTime;

    /**
     * '0:未删除、1:已删除'
     */
    private Boolean del;


}
